<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>解决图片底部默认空白间隙问题</title>
    <style>
        div {
            border: 2px solid red;
        }
        img {
            vertical-align: middle;
            /* display: block; */
        }
    </style>
</head>
<body>
    <div>
        <img src="img/banner2.png" alt="">
        <img src="img/图片底部空白间隙.png" alt="">
    </div>

</body>
</html>